--- /dev/null
- siridb-server (2.0.53-0~cb1) unstable; urgency=medium
++siridb-server (2.0.53-1) unstable; urgency=medium
+
- * New upstream release
- - Fixed bug with rollback after failed HTTP request for a new database
- - Use heap instead of stack for translating a forward query
- - Fixed reaclloc with zero bug
- - Update testing files
++ * New upstream version 2.0.53
++ * Build-Depends: add libcrypt-dev (Closes: #1107003)
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Wed, 22 Oct 2025 10:04:00 +0200
++ -- Paul Gevers <elbrus@debian.org> Sat, 15 Nov 2025 08:44:39 +0100
+
- siridb-server (2.0.52-0~cb1) unstable; urgency=medium
++siridb-server (2.0.52-1) unstable; urgency=medium
+
- * New upstream release
- - Fixed potential bug with empty log log lines in series.
++ * New upstream version 2.0.52
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Mon, 23 Sep 2024 16:57:00 +0200
++ -- Paul Gevers <elbrus@debian.org> Thu, 26 Sep 2024 18:59:22 +0200
+
- siridb-server (2.0.50-0~cb1) unstable; urgency=medium
++siridb-server (2.0.51-4) unstable; urgency=medium
+
- * New upstream release
- - Fixed potential bug while removing data
++ * Don't run valgrind tests on armhf until bug 1061496 is fixed
++ * tests: give server a bit time to start up (Closes: #1079984)
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Tue, 21 Mar 2023 11:22:27 +0100
++ -- Paul Gevers <elbrus@debian.org> Thu, 29 Aug 2024 16:54:49 +0200
+
- siridb-server (2.0.49-0~cb1) unstable; urgency=medium
++siridb-server (2.0.51-3) unstable; urgency=medium
+
- * New upstream release
- - Fixed HTTP requests with new libuv version (#183, Thanks to Nick Rosbrook)
++ * tests: add --retry to first curl to avoid failing if siridb-server
++ isn't ready yet (Closes: #1067705)
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Mon, 19 Sep 2022 16:08:54 +0200
++ -- Paul Gevers <elbrus@debian.org> Thu, 23 May 2024 22:34:09 +0200
+
- siridb-server (2.0.48-0~cb1) unstable; urgency=medium
++siridb-server (2.0.51-2) unstable; urgency=medium
+
- * New upstream release
- - Implement smaller indexes for old data
- - Added `head` and `tail` syntax queries (#180)
++ [ Debian Janitor ]
++ * Update renamed lintian tag names in lintian overrides.
++ * Update standards version to 4.6.1, no changes needed.
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Fri, 15 Jul 2022 07:55:12 +0200
++ [ Paul Gevers ]
++ * Add tzdata to Build-Depends (Closes: #1027381)
+
- siridb-server (2.0.47-0~cb1) unstable; urgency=medium
++ -- Paul Gevers <elbrus@debian.org> Mon, 30 Oct 2023 20:29:46 +0100
+
- * New upstream release
- - Fixed initializing `random` (Thanks to Jayakrishna Menon)
- - Changed Tee from Unix to TCP socket (#179)
-
- -- Jeroen van der Heijden <jeroen@cesbit.com> Fri, 29 Apr 2022 08:17:01 +0200
-
- siridb-server (2.0.46-0~tt1) unstable; urgency=medium
++siridb-server (2.0.51-1) unstable; urgency=medium
+
+ * New upstream release
- - Switch to omap for storing promises (#175)
- - Increased chunk size for numeric shards
++ - Drop libuv1 patch, solved differently upstream
++ * watch: update to use github API
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Thu, 17 Feb 2022 14:21:58 +0100
++ -- Paul Gevers <elbrus@debian.org> Sat, 28 Oct 2023 23:12:25 +0200
+
- siridb-server (2.0.45-0~tt1) unstable; urgency=medium
++siridb-server (2.0.48-1) unstable; urgency=medium
+
++ [ Paul Gevers ]
+ * New upstream release
- - Compatibility with libcleri v1.x
- - Prioritize replication
-
- -- Jeroen van der Heijden <jeroen@cesbit.com> Thu, 13 Jan 2022 11:37:26 +0100
+
- siridb-server (2.0.44-0~tt1) unstable; urgency=medium
-
- * New upstream release
- - Improve imap data structure (#168)
- - Added ignore_broken_data option (@ubnt-michals, #172)
- - Fixed siridb_time_now for arm32 builds (@srdgame, #169)
++ [ Nick Rosbrook ]
++ * Add patch to prevent segfault with libuv1 1.44.2 (Closes: #1017748)
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Tue, 06 Apr 2021 11:39:12 +0200
++ -- Paul Gevers <elbrus@debian.org> Thu, 25 Aug 2022 21:06:59 +0200
+
- siridb-server (2.0.43-0~tt1.1) UNRELEASED; urgency=medium
-
- * Non-maintainer upload.
- * Improve cross building: (Closes: #-1)
- + cross.patch: Make gcc substitutable.
- + Let dh_auto_build pass cross tools to make.
-
- -- Helmut Grohne <helmut@subdivi.de> Tue, 09 Feb 2021 13:48:47 +0100
-
- siridb-server (2.0.43-0~tt1) unstable; urgency=medium
++siridb-server (2.0.45-1) unstable; urgency=medium
+
++ [ Ileana Dumitrescu ]
++ * Non-maintainer upload
+ * New upstream release
- - Fixed HTTP pipeline issue (@srdgame, #161)
- - Fixed possible memory corruption (@ubnt-michals, #158)
- - Changed SIRIDB_DB_PATH configuration (#154)
- - Fixed shard duration for ARM builds (@srdgame, #164)
- - Use IPv4 for health and API when configured (@ubnt-michals, #155)
++ * Added latomic patch to port for riscv (Closes: #983768)
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Thu, 04 Feb 2021 15:36:02 +0100
++ -- Ileana Dumitrescu <ileanadumi95@protonmail.com> Mon, 07 Feb 2022 16:09:39 +0100
+
- siridb-server (2.0.42-0~tt1) unstable; urgency=medium
++siridb-server (2.0.44-1) unstable; urgency=medium
+
++ [ Paul Gevers ]
+ * New upstream release
- - Fixed handle ready status in Kubernetes statefulset (#153)
++ * Drop patch, applied upstream
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Thu, 12 Nov 2020 09:39:13 +0100
++ [ Debian Janitor ]
++ * Update standards version to 4.5.1, no changes needed.
+
- siridb-server (2.0.41-0~tt1) unstable; urgency=medium
-
- * New upstream release
- - Fixed bug in insert loop (#147)
- - Fixed loading databases with duplicated series (#148)
- - Allow server names without defining a port (#150)
++ -- Paul Gevers <elbrus@debian.org> Sun, 02 Jan 2022 17:40:53 +0100
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Wed, 04 Nov 2020 13:15:29 +0100
++siridb-server (2.0.43-1) unstable; urgency=medium
+
- siridb-server (2.0.40-0~tt1) unstable; urgency=medium
++ [ Helmut Grohne ]
++ * Improve cross building: (Closes: #982363)
+
++ [ Paul Gevers ]
+ * New upstream release
- - Added `alter tag` syntax (#144)
- - Fixed list tags error when conditions are used (#145)
- - Fixed division by zero bug (#146)
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Fri, 25 Sep 2020 16:35:28 +0200
++ -- Paul Gevers <elbrus@debian.org> Fri, 19 Feb 2021 20:37:54 +0100
+
- siridb-server (2.0.39-0~tt1) unstable; urgency=medium
++siridb-server (2.0.42-1) unstable; urgency=medium
+
- * New upstream release
- - Added auto shard duration option (#141)
- - Added `shard_duration` property on list series (#140)
- - Added `timeval()` and `interval()` functions (#138)
- - Fixed build error on 32 bit systems (#135)
++ New upstream release
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Fri, 18 Sep 2020 15:50:10 +0200
++ -- Paul Gevers <elbrus@debian.org> Sun, 03 Jan 2021 21:54:23 +0100
+
- siridb-server (2.0.38-0~tt1) unstable; urgency=medium
++siridb-server (2.0.40-1) unstable; urgency=medium
+
+ * New upstream release
- - Added tag support (#74)
- - Fixed cleanup duplicate package (#134)
++ - Drop patches (applied upstream)
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Fri, 28 Aug 2020 11:12:24 +0200
++ -- Paul Gevers <elbrus@debian.org> Sun, 18 Oct 2020 20:47:25 +0200
+
- siridb-server (2.0.37-0~tt1) unstable; urgency=medium
++siridb-server (2.0.38-3) unstable; urgency=medium
+
- * New upstream release
- - Fixed reading `series.dat` after unclean shutdown (#130)
- - Fixed `gcc-10` compile errors (#132)
++ * Drop valgrind check on mips*el for now
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Thu, 23 Jul 2020 14:38:50 +0200
++ -- Paul Gevers <elbrus@debian.org> Sat, 12 Sep 2020 21:30:15 +0200
+
- siridb-server (2.0.36-0~tt1) unstable; urgency=medium
++siridb-server (2.0.38-2) unstable; urgency=medium
+
- * New upstream release
- - Fixed bug in max open files setting (#125)
- - Accept Grafana compatible API requests (#129)
- - Added support for configuration using environment variable (#128)
++ * Only add valgrind as Build-Depends where it exists
++ * Add patches to fix issues found by valgrind on mips*el
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Wed, 22 Apr 2020 11:18:32 +0200
++ -- Paul Gevers <elbrus@debian.org> Thu, 10 Sep 2020 21:24:55 +0200
+
- siridb-server (2.0.35-0~tt1) unstable; urgency=medium
++siridb-server (2.0.38-1) unstable; urgency=medium
+
++ [ Paul Gevers ]
+ * New upstream release
- - Added shard expiration (#123)
- - Added HTTP API (#124)
++ * Add simple (but not superficial) autopkgtest
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Mon, 24 Feb 2020 16:23:37 +0100
++ [ Debian Janitor ]
++ * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
++ Repository-Browse.
+
- siridb-server (2.0.34-0~tt1) unstable; urgency=medium
++ -- Paul Gevers <elbrus@debian.org> Thu, 10 Sep 2020 09:55:01 +0200
++
++siridb-server (2.0.37-1) unstable; urgency=medium
+
+ * New upstream release
- - Added readiness and liveness HTTP handler (#122)
- - Fixed bug in sending packages to multiple SiriDB servers (#120)
++ - Fix FTBFS with GCC-10 (Closes: #957800)
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Mon, 08 Jul 2019 14:18:56 +0200
++ -- Paul Gevers <elbrus@debian.org> Mon, 27 Jul 2020 07:38:34 +0200
+
- siridb-server (2.0.33-0~tt1) unstable; urgency=medium
++siridb-server (2.0.36-1) unstable; urgency=medium
+
+ * New upstream release
- - Fixed deep recursion in series selection (#118)
- - Fixed a few gcc version 8 warnings (#117)
- - Increased package size limit and warning
- - Added check for unexpected time-stamps in shards at startup
++ - Fixed headers (Closes: #933220)
++ * Add new B-D: libyajl-dev
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Thu, 04 Apr 2019 14:19:22 +0200
++ -- Paul Gevers <elbrus@debian.org> Sun, 17 May 2020 16:02:21 +0200
+
- siridb-server (2.0.32-0~tt1) unstable; urgency=medium
++siridb-server (2.0.34-1) unstable; urgency=medium
+
+ * New upstream release
- - Fixed drop database
++ * Update d/copyright
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Fri, 11 Jan 2019 16:03:42 +0100
++ -- Paul Gevers <elbrus@debian.org> Wed, 24 Jul 2019 14:58:21 +0200
+
- siridb-server (2.0.31-0~tt1) unstable; urgency=medium
++siridb-server (2.0.32-1) unstable; urgency=medium
+
+ * New upstream release
- - Added option for adding a data tee
- - Added option to drop a database (#115)
- - Remove limit of 4 database (#114)
- - Do not return with an error if series do not exist (#112)
- - Allow the use of parentheses in selecting series (#111)
- - Fixed bug in merging series with high time precision (#108)
- - Code forward compatible with upcoming cleri release
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Thu, 10 Jan 2019 11:35:12 +0100
++ -- Paul Gevers <elbrus@debian.org> Wed, 23 Jan 2019 20:06:04 +0100
+
- siridb-server (2.0.30-0~tt1) unstable; urgency=medium
++siridb-server (2.0.30-1) unstable; urgency=medium
+
++ [ Jeroen van der Heijden ]
+ * New upstream release
+ - SiriDB Server can now compile with gnu89/gnu90 (#101)
+ - Removed deprecated info- and loaddb requests
+ - Added named pipe support (#104, @pavelxdd)
+ - Changed writing buffer length to reduce random io
+ - Added option to fsync the buffer on a configurable interval
+ - Use posix_fadvise() on the buffer file (@Svedrin)
+ - The buffer size can now be adjusted by using the database.conf
+ configuration file
+ - Added conversion of invalid value types
++ * Lower log level of the service file
++
++ [ Paul Gevers ]
++ * Run testsuite during build
+
- -- Jeroen van der Heijden <jeroen@cesbit.com> Fri, 12 Oct 2018 19:44:24 +0200
++ -- Paul Gevers <elbrus@debian.org> Sun, 28 Oct 2018 18:43:45 +0100
+
+siridb-server (2.0.29-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 25 Jul 2018 21:57:12 +0200
+
+siridb-server (2.0.28-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 02 Jul 2018 14:00:34 +0200
+
+siridb-server (2.0.27-1) unstable; urgency=medium
+
+ * New upstream release
+ * Update Maintainer and Vcs fields (Closes: #890700)
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 28 May 2018 10:22:52 +0200
+
+siridb-server (2.0.26-1) unstable; urgency=medium
+
+ * New upstream release
+ * Drop all patches
+ * Add man page
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 06 Jan 2018 07:54:21 +0100
+
+siridb-server (2.0.25-1) unstable; urgency=medium
+
+ * Initial release. (Closes: #882678)
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 04 Dec 2017 21:40:02 +0100
--- /dev/null
--- /dev/null
++#!/bin/sh
++set -e
++
++RES=0
++
++echo '* fixing /etc/siridb/siridb.conf'
++sed --in-place 's/http_api_port = 0/http_api_port = 9020/' /etc/siridb/siridb.conf
++
++echo '* restarting siridb-server'
++service siridb-server restart
++
++echo '* touch res.txt'
++touch res.txt
++
++echo '* sleep to let the server start up properly'
++sleep 5
++
++echo '* run queries'
++echo ' get-version'
++curl --silent --show-error --location --output res.txt \
++ --retry 10 \
++ --request GET 'http://localhost:9020/get-version' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' || RES=1
++cat res.txt
++echo
++
++echo ' new-database'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/new-database' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "dbname": "sampledb",
++ "time_precision": "s",
++ "buffer_size": 8192,
++ "duration_num": "1w",
++ "duration_log": "3d"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' new-account'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/new-account' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "account": "bob",
++ "password": "passwd4bob"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' change-password'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/change-password' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "account": "bob",
++ "password": "pass"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' drop-account'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/drop-account' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "account": "bob"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' drop-database'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/drop-database' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "database": "sampledb",
++ "ignore_offline": false
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' drop-database again'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/drop-database' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "database": "sampledb",
++ "ignore_offline": false
++}' || RES=1
++cat res.txt
++echo
++expect='{"error_msg":"cannot find database '"'"'sampledb'"'"'"}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' get-accounts'
++curl --silent --show-error --location --output res.txt \
++ --request GET 'http://localhost:9020/get-accounts' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ=='
++cat res.txt
++echo
++expect='["sa"]'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' new-database for queries'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/new-database' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "dbname": "sampledb",
++ "time_precision": "s",
++ "buffer_size": 8192,
++ "duration_num": "1w",
++ "duration_log": "3d"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' get-databases'
++curl --silent --show-error --location --output res.txt \
++ --request GET 'http://localhost:9020/get-databases' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ=='
++cat res.txt
++echo
++expect='["sampledb"]'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' query data (nothing there)'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/query/sampledb' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic aXJpczpzaXJp' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "q": "select count() from '\''aggr'\''",
++ "t": "ms"
++}' || RES=1
++cat res.txt
++echo
++expect='{}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' insert data'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/insert/sampledb' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic aXJpczpzaXJp' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "aggr": [
++ [1578933215, 42],
++ [1578933223, 123]
++ ]
++}' || RES=1
++cat res.txt
++echo
++expect='{"success_msg":"Successfully inserted 2 point(s)."}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' query data'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/query/sampledb' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic aXJpczpzaXJp' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "q": "select count() from '\''aggr'\''",
++ "t": "ms"
++}' || RES=1
++cat res.txt
++echo
++expect='{"aggr":[[1578933223000,2]]}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++exit $RES